const unitConf = {
    multiLang: {
        domainName: 'uapbd',
        currentLocale: 'zh-CN',
        moduleId: 'refer_uapbd',
    },
    key: 'pk_country',
    refType: 'grid',
    refName: 'refer-000444', /* 国际化处理： 国家地区EX*/
    placeholder: 'refer-000444', /* 国际化处理： 国家地区EX*/
    refCode: 'uapbd.refer.pubinfo.CountryExDefaultGridRef',
    queryGridUrl: '/nccloud/uapbd/pub/CountryExDefaultGridRef.do',
    isMultiSelectedEnabled: false,
    columnConfig: [{
        name: ['refer-000002', 'refer-000441', 'refer-000003', 'refer-000422', 'refer-000442', 'refer-000443', 'refer-000445'], /* 国际化处理： 编码,三位代码,名称,描述,时区,格式,欧盟国家*/
        code: ['refcode', 'codeth', 'refname', 'description', 'timezonename', 'formatname', 'iseucountry'],
        checked: {
            description: false,
            timezonename: false,
            formatname: false,
            iseucountry: false,
        }
    }]
};

export default function setQueryMeta() {
    let meta = this.props.meta.getMeta(), that = this;
    meta.blackquery.items.find(item => item.attrcode === 'psncode').queryCondition = function () {
        return {
            pk_org: that.props.orgVal && that.props.orgVal.refpk,
            isIncludeKeyPsnGrp: "false",
            GridRefActionExt: "nccloud.web.hrhi.blacklist.sqlbuilder.BlackListQryDlgPsnRefSqlBuilder"
        }
    };
    const permanentres = meta.blackquery.items.find(item => item.attrcode === 'permanentres');
    permanentres.isShowUnit = true;
    permanentres.unitProps = unitConf;
    this.props.meta.setMeta(meta);
}
